package com.dotflat.safe.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "tb_sterilization_record")
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("消毒和卫生检查记录")
public class SterilizationRecord extends AreableObjectBase {

	@Column(columnDefinition = " int default 0 COMMENT '巡检类型， 0：手选目标，  1：扫码目标' ")
	private Integer targetType = 0;

	@Column(columnDefinition = " varchar(32)  COMMENT '消毒目标id'")
	private String targetId;

	@Column(columnDefinition = " varchar(50)  COMMENT '消毒目标名字'")
	private String targetName;

	@Column(columnDefinition = " varchar(32)  COMMENT '操作员id'")
	private String operatorId;

	@Column(columnDefinition = " varchar(50)  COMMENT '操作员名字'")
	private String operatorName;

	@Column(columnDefinition = " varchar(1024) COMMENT '完整报告内容' ")
	private String content;

	@Column(columnDefinition = " int default 0 COMMENT '媒体文件类型 1：图片，2：视频' ")
	private Integer mediaType=0;

	@Column(columnDefinition = " varchar(2048) COMMENT '媒体文件地址' ")
	private String resourceUrl;

	@Transient
	private String areaName;

}
